home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 June / MacFormat 25.iso / Shareware City / Developers / Tools Plus 2.5.3 Evaluation Kit / Tools Plus 2.5.3 / User Manual / 00-Contents next >
Encoding:
INI File  |  1994-09-17  |  14.3 KB  |  435 lines  |  [TEXT/ttxt]

  1. [Display using Monaco 9]
  2.  
  3.  
  4. Contents
  5. ````````
  6.  
  7.   1  Introduction to Tools Plus
  8.          What is Tools Plus
  9.          An Overview of Tools Plus
  10.          The Tools Plus Advantage
  11.          Who can benefit from Tools Plus
  12.          What kind of applications can be written with Tools Plus
  13.          What is Tools Plus not suitable for
  14.          System Requirements
  15.          Assumptions made when writing this manual
  16.          Convensions used throughout this manual
  17.          Software Updates
  18.          For your information (recommended reading)
  19.  
  20.   2  Installing Tools Plus
  21.          Installing Tools Plus in THINK C
  22.              Adding Tools Plus to a THINK C Project
  23.              Tools Plus Segments
  24.          Installing Tools Plus in THINK Pascal
  25.              Adding Tools Plus to a THINK Pascal Project
  26.              After Compiling
  27.              Tools Plus Segments
  28.          Compiling The C Demo Application
  29.          Compiling The Pascal Demo Application
  30.  
  31.   3  Designing Your Application
  32.          Overview
  33.          A Macintosh Event, in Brief
  34.          Macintosh Event Queue
  35.          Key Up Events
  36.          Tools Plus Events
  37.          The Main Event Loop
  38.          System 5 and 6’s Finder and MultiFinder, and System 7
  39.              Finder
  40.              MultiFinder
  41.              System 7
  42.          The C Header file (ToolsPlus.h)
  43.          Range Checking
  44.          What to read next
  45.  
  46.   4  Initialization
  47.          Initializing Tools Plus
  48.          Initialization Failure
  49.          Other Initialization
  50.          The Cursor
  51.  
  52.   5  Windows
  53.         Overview
  54.             Window Types
  55.             Title Bar, Close box, and Zoom box
  56.             Size Box
  57.             Maximum Number of Open Windows
  58.             Tool Bar and Floating Palettes
  59.             Standard Windows
  60.             Active Window
  61.             Work Window
  62.             Current Window
  63.             Editing Field Window
  64.             Modal Windows
  65.             Window Layers
  66.             Global and Local Co-ordinates
  67.             Handling Windows
  68.         Opening a window
  69.             Floating Palettes
  70.         Opening a tool bar
  71.         Closing a window, tool bar, or palette
  72.         Changing a window’s size
  73.         Moving a window
  74.         Hiding/showing a window
  75.         Activating a window
  76.         Making a window current without activating it
  77.         Making the active window current
  78.         Changing a window’s title
  79.         Setting a window’s size limits
  80.         Setting the “standard” and “user” co-ordinates for zooming
  81.         Getting the “standard” and “user” co-ordinates for zooming
  82.         Getting a window’s status information
  83.         Getting your app’s active window number
  84.         Getting your app’s current window number
  85.         Getting your app’s front most window number
  86.         Getting your app’s tool bar number
  87.         Getting your app’s front most floating palette’s number
  88.         Getting your app’s front most standard window number
  89.         Getting your app’s work window number
  90.         Getting the window number of your app’s active edit field
  91.         Determining if a window is open
  92.         Determining if a window is visible
  93.         Determining a window’s type
  94.         Getting a window’s pointer
  95.  
  96.   6  Buttons
  97.         Overview
  98.             Button Types
  99.             Button States
  100.             Button Titles
  101.             Fonts
  102.             Default Button
  103.             Handling Buttons
  104.         Creating a new button
  105.             Fonts
  106.             Default Button
  107.         Deleting a button
  108.         Enabling/Disabling a button
  109.         Selecting/Deselecting a button
  110.         Determining if a button is enabled
  111.         Determining if a button is selected
  112.         Changing a button’s title
  113.         Flashing a button (simulating selection)
  114.         Setting a default button
  115.         Removing the “default button” status from a window
  116.  
  117.   7  Picture Buttons
  118.         Overview
  119.             Button Types
  120.             Button Behavior
  121.             Selection Effects
  122.             Disabling Effects
  123.             Button’s Value and Stages
  124.             Handling Picture Buttons
  125.         Creating a new picture button
  126.             Resource IDs
  127.                 Icon Resource IDs
  128.                 3D SICN Buttons
  129.                 PICT Resource IDs
  130.             Behavior and Appearance Specification
  131.             Rate of Repeating Events
  132.         Deleting a picture button
  133.         Enabling/Disabling a picture button
  134.         Selecting/Deselecting a picture button
  135.         Getting a picture button’s minimum value limit
  136.         Setting a picture button’s minimum value limit
  137.         Getting a picture button’s maximum value limit
  138.         Setting a picture button’s maximum value limit
  139.         Getting a picture button’s current value
  140.         Setting a picture button’s current value
  141.         Setting a picture button’s value and selection state
  142.         Setting a picture button’s value change rate
  143.         Setting a picture button’s value change speed
  144.         Determining if a picture button is enabled
  145.         Determining if a picture button is selected
  146.         Flashing a picture button (simulating selection)
  147.  
  148.   8  Scroll Bars
  149.         Overview
  150.             Scroll Bar States
  151.             Handling Scroll Bars
  152.         Creating a new scroll bar
  153.         Deleting a scroll bar
  154.         Enabling/disabling a scroll bar
  155.         Getting a scroll bar’s minimum value limit
  156.         Setting a scroll bar’s minimum value limit
  157.         Getting a scroll bar’s maximum value limit
  158.         Setting a scroll bar’s maximum value limit
  159.         Getting a scroll bar’s current value
  160.         Setting a scroll bar’s current value
  161.  
  162.   9  Editing Fields
  163.         Overview
  164.             Field Capacity
  165.             Alignment of text in a field
  166.             The Window’s Active Field
  167.             Activating a Field
  168.             Editing Field Window
  169.             The Field’s String & Edited Text
  170.             Fonts
  171.             Length Limited Fields
  172.             Word Wrap
  173.             Clicking and Tabbing in fields
  174.             Using Fields
  175.             Mac 512KE and Mac Plus keyboard with numeric pad
  176.             The Edit Menu
  177.             Handling Fields
  178.             Special Handling of Fields
  179.         Creating a new field
  180.             Fonts
  181.         Deleting a field
  182.         Activating a field
  183.         Deactivating a field
  184.         Clicking in an inactive field
  185.         Getting the active field’s edited text
  186.         Saving the active field’s edited text as the field’s string
  187.         Getting the window number of your app’s active edit field
  188.         Getting the active field’s number
  189.         Turning field length limiting on/off
  190.         Repositioning a field
  191.             Scrolling fields
  192.         Pasting into a field under your application’s control
  193.  
  194.   10  List Boxes
  195.         Overview
  196.             Fonts
  197.             Handling List Boxes
  198.         Creating a new list box
  199.             Selection Methods
  200.             Fonts
  201.         Deleting a list box
  202.         Adding a new line / replacing an existing line in a list box
  203.         Getting a line’s text
  204.         Searching lines for specific text (alphabetic order)
  205.         Selecting/Deselecting a line
  206.         Determine if a line is selected
  207.         Determine the next selected line number
  208.         Inserting a blank line into a list box
  209.         Deleting a line
  210.         Turning a list box’s drawing on/off
  211.  
  212.   11  Pop-Up Menus
  213.         Overview
  214.             Command Keys & Hierarchical Pop-Up Menus
  215.             Handling Pop-Up Menus
  216.         Creating a new pop-up menu
  217.             Appearance and Behavior
  218.             Pop-Up Menus on Color Backgrounds
  219.         Adding, changing or renaming a pop-up menu item
  220.             Metacharacters
  221.         Inserting a pop-up menu item
  222.         Deleting a pop-up menu or pop-up menu item
  223.         Getting a pop-up menu item’s text
  224.         Renaming a pop-up menu item
  225.         Enabling or disabling a pop-up menu or pop-up menu item
  226.         Determine if a pop-up menu is enabled
  227.         Displaying or hiding the Check mark
  228.         Displaying or hiding special marks
  229.         Geting a pop-up menu item’s special mark
  230.         Setting a pop-up menu item’s icon
  231.         Geting a pop-up menu item’s icon
  232.         Changing a pop-up menu item’s style
  233.         Determining the number of items in a pop-up menu
  234.         Determining the selected item in a pop-up menu
  235.  
  236.   12  Menus
  237.         Overview
  238.             Menus Accessed by MultiFinder and System 7
  239.             Edit Menu
  240.             Desk Accessories
  241.             Menus and Editing Fields
  242.             Menus and Desk Accessories
  243.             Command Key Equivalents
  244.             Handling Menus
  245.         Creating the Apple menu
  246.         Creating and renaming a menu or menu item
  247.             Metacharacters
  248.         Attaching or detaching a hierarchical menu
  249.         Inserting a menu item
  250.         Deleting a menu or menu item
  251.         Updating the menu bar (redrawing it)
  252.         Getting a menu item’s text
  253.         Renaming a menu item
  254.         Enabling or disabling a menu or menu item
  255.         Displaying or hiding the Check mark
  256.         Displaying or hiding special marks
  257.         Getting a menu item’s special mark
  258.         Setting a menu item’s Command-key equivalent
  259.         Getting a menu item’s Command-key equivalent
  260.         Setting a menu item’s icon
  261.         Getting a menu item’s icon
  262.         Changing a menu item’s style
  263.         Determining the number of items in a menu
  264.         Determining a menu’s parent menu
  265.         Determining a menu item’s submenu
  266.         Highlight or unhighlight a menu
  267.  
  268.   13  Cursors
  269.         Overview
  270.             Automatic Cursor Changes
  271.             The Watch Cursor
  272.             Starting your application
  273.             The Cursor Table
  274.             Advanced Features
  275.             Cursor Animation
  276.             Handling Cursors
  277.         Changing the cursor’s shape
  278.         Resetting cursor shape according to window orientation
  279.         Creating a new cursor table
  280.         Deleting a cursor table
  281.         Creating/replacing a cursor zone (using a rectangle)
  282.         Creating/replacing a cursor zone (using a region)
  283.         Deleting a cursor zone
  284.         Getting a cursor zone’s bounding rectangle
  285.         Getting a cursor zone’s region
  286.         Indicate that cursor zone regions have been altered
  287.         Making a window use a cursor table (or stop using one)
  288.         Determining which cursor zone contains a specified point
  289.         Enabling/disabling button clicks during a watch cursor
  290.  
  291.   14  System Polling
  292.         Overview
  293.         What Is Polling?
  294.         Task Switching
  295.         Background Processing
  296.         Macintosh Events
  297.         Watch Cursor -- a busy system
  298.         The Event Queue
  299.         Tools Plus Event Record
  300.         Event Record Fields
  301.         Event Modifiers
  302.             Event Modifiers Using C
  303.             Event Modifiers Using Pascal
  304.         PollSystem (System polling)
  305.             Tools Plus Event Codes
  306.             What Does PollSystem Do?
  307.                 Internally Processed Events
  308.                 Externally Processed Events
  309.             Inside PollSystem
  310.             Translating Toolbox events to Tools Plus events
  311.         Responding to Events
  312.             doNothing
  313.             doChgWindow
  314.             doRefresh
  315.             doPreRefresh
  316.             doGoAway
  317.             doButton
  318.             doMenu
  319.             doKeyDown
  320.             doAutoKey
  321.             doKeyUp
  322.             doClickField
  323.             doScrollBar
  324.             doListBox
  325.             doClick
  326.             doPopUpMenu
  327.             doPictButton
  328.             doClickControl
  329.             doManual
  330.             doMoveWindow
  331.             doGrowWindow
  332.             doClickDesk
  333.             doZoomWindow
  334.             doSuspend
  335.             doResume
  336.             doChgInField
  337.         Scheduling background processing
  338.         Determining if "scheduling processing" is supported
  339.         Discontinuing multiple clicks or drags
  340.         Determining if your application is suspended
  341.         “Field to Event” Cross reference
  342.  
  343.   15  Color Drawing & Multiple Monitors
  344.         Overview
  345.             Using One Monitor
  346.             Using Multiple Monitors
  347.             Changing Screen Settings
  348.         Determining if Color QuickDraw is used
  349.         Determining the number of logical screens
  350.         Beginning color-dependent drawing on a window
  351.         Ending color-dependent drawing on a window
  352.         Determining the number of colors on a screen
  353.         Determining if the screen is set to draw in color
  354.         Resetting the current window’s pen to default values
  355.         Getting the current window’s pen settings
  356.         Setting the current window’s pen settings
  357.  
  358.   16  User Notification
  359.         Overview
  360.             Notifying the User
  361.         Define settings for notifying the user
  362.         Notifying the user that your application needs attention
  363.  
  364.   17  Dynamic Alerts
  365.         Overview
  366.             Icons
  367.             Text
  368.             Buttons
  369.             Function’s Value
  370.             Automatic User Notification
  371.             Alerts Samples
  372.         Displaying a Dynamic Alert
  373.             Custom Button Combinations
  374.         Changing button titles on Dynamic Alerts
  375.  
  376.   18  Miscellaneous Routines
  377.         Overview
  378.         Drawing an icon
  379.             Intelligent Icon Drawing
  380.             Icon Family
  381.             Icon Selection
  382.             Drawing the Icon, Selecting, Disabling, and Masking
  383.             Creating Your Own Icons
  384.         Set the default appearance for disabled icons
  385.             Default Appearance for Disabled Icons
  386.         Determining the System version
  387.         Play the System Error sound
  388.         Wait for a specified time
  389.         Drawing “Zoom Lines”
  390.         Drawing a standard Macintosh progress thermometer
  391.         Determining the minimum value of two numbers
  392.         Determining the maximum value of two numbers
  393.  
  394.   19  Other Macintosh Features
  395.         Overview
  396.             Alerts
  397.             Dialogs
  398.             Custom Controls
  399.             Lists
  400.  
  401.   20  Memory
  402.         Overview
  403.             Editing Fields
  404.             Measurements
  405.             Routines that consume heap space (by category)
  406.             Routines that consume heap space (alphabetic)
  407.             The Style Table
  408.             Good memory habits
  409.  
  410.   21  Font Heights
  411.         Font heights table
  412.  
  413.   22  Special Routines
  414.         Use these routines with caution, or don’t use them!
  415.  
  416.   23  Completing Your Application
  417.         Overview
  418.         Application’s Icons
  419.         Icon Family
  420.         File Types, Creators, and the Application Signature
  421.         Signature (the Creator code)
  422.         Bundle
  423.         Version
  424.         mstr Resources
  425.         SIZE Resource
  426.         Cloned SIZE resources
  427.  
  428.   24  Technical Support
  429.         What does Technical Support do?
  430.         What doesn’t Technical Support do?
  431.         Electronic Mail (E-mail) Support
  432.         Mail Support
  433.         Software Updates
  434.         Software Upgrades
  435.